package cn.bjc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
//开启Eureka客户端注解,此注解可以不用加,只要导入了客户端依赖,默认就是eureka客户端
//@EnableEurekaClient
//此注解也是表示开启服务注册与发现，但是此注解针对所有注册中心客户端，可以不加
@EnableDiscoveryClient
public class GateWayApp {
    public static void main(String[] args) {
        SpringApplication.run(GateWayApp.class, args);
    }
}